package com.neusoft.hospital.service.impl;
/**
 *
 * r
 *
 */
import com.neusoft.hospital.mapper.CirMapper;
import com.neusoft.hospital.pojo.CiReport;
import com.neusoft.hospital.pojo.Cidetailedreport;
import com.neusoft.hospital.service.CirService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class CirServiceImpl implements CirService {

	@Resource
	private CirMapper cirMapper;

	@Override
	public List<CiReport> findCirBycirid(int cirId) {
		return cirMapper.findCirBycirid(cirId);
	}

	@Override
	public int insertCir(CiReport cireport) {
		return cirMapper.insertCir(cireport);
	}

	@Override
	public int updateCir(CiReport cireport) {
		return cirMapper.updateCir(cireport);
	}

	@Override
	public int deleteCir(CiReport cireport) {
		return cirMapper.deleteCir(cireport);
	}

	@Override
	public CiReport findTaskByCiId(int ciId) {
		return cirMapper.findTaskByCiId(ciId);
	}

	@Override
	public List<CiReport> findCirByName(String ciName) {
		return cirMapper.findCirByName(ciName);
	}

	@Override
	public List<CiReport> findCirBySql() {
		return cirMapper.findCirBySql();
	}

	@Override
	public Cidetailedreport findcirByOid(int cidrId) {
		return cirMapper.findcirByOid(cidrId);
	}
	@Override
	public List<CiReport> findcireport() {
		return cirMapper.findcireport();
	}
}
